package strategy;

/**
 * 实现 字符串 比较器
 *
 * @author cctv
 */
public class CharComparator implements  java.util.Comparator<MyObj> {


    @Override
    public int compare(MyObj o1, MyObj o2) {
        char a = o1.getChar();
        char b = o2.getChar();
        return a-b;
    }
}
